{include(file='header.tpl')}
                <p id="subnav">{$language_breadcrumb}: <a href="{$base_uri}">Webgis</a> &gt; <a href="{$base_uri}index.php?input=map&amp;m_id={$m_id}">{$map_title}</a> &gt; {$language_legend_region_selection}
                <h2>{$map_title}</h2>
                <form method="post" action="{$base_uri}index.php?input=map&amp;m_id={$m_id}&amp;selection=region" id="layerpropsform">
                <fieldset>
                    <legend>{$language_legend_region_selection}</legend>
                    <ol id="regions_list">
                        {foreach $arr_regions key item}
                        <li>
                            <input type="checkbox" name="arr_regions[]" id="region_{$item.region_id}" value="{$key}"{if $arr_layer_gids.$key !== null || $regionscount == 0} checked="checked"{/if} />
                            <label for="region_{$item.region_id}">{$item.region_id}</label> <label for="region_{$item.region_id}">{$item.region}</label>
                        </li>
                        {/foreach}
                    </ol>
                </fieldset>
                <p><input type="submit" value="{$language_submit_save}" id="layerpropsformsubmit" /><img src="{$base_uri}/output/theme/default/images/ajax-loader.gif" alt="{$language_alt_saving}" style="display: none;" id="loading_image" /><span id="ajax_response_message" style="display: none;"></span></p>
                </form>
                <script type="text/javascript" src="{$base_uri}output/theme/default/js/prototype/scriptaculous/scriptaculous.js?load=effects"></script>
                <script type='text/javascript' src='{$base_uri}output/theme/default/js/layerprops.js'></script>
                <script type='text/javascript' src='{$base_uri}output/theme/default/js/selectall.js'></script>
                <script type="text/javascript">
                /* <![CDATA[ */
                    new Select_All('regions_list');
                /* ]]> */
               </script>
                <p class="button"><a href="{$base_uri}index.php?input=map&amp;m_id={$m_id}">{$language_back_to_map}</a></p>
{include(file='footer.tpl')}
